<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%
	StringBuffer strURL = request.getRequestURL();
	String URL = strURL.toString();
	String contPath = request.getContextPath();
	int nIndex = URL.indexOf(contPath);
	URL = "http://tugo.cn/weixin_aef/";
	%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<!-- 移动端必须的设置 -->
<link rel="stylesheet" href="<%=URL%>newedition/css/aui.css" />
<link rel="stylesheet" href="<%=URL%>newedition/css/oiler_taskList.css" />
<link rel="stylesheet" href="<%=URL%>newedition/css/aui-pull-refresh.css" />
<script type="text/javascript" src="<%=URL%>newedition/js/jquery-3.2.1.min.js"></script>
<script type="text/javascript" src="<%=URL%>newedition/js/aui-toast.js"></script>
<script type="text/javascript" src="<%=URL%>newedition/js/aui-slide.js"></script>
<script type="text/javascript" src="<%=URL%>newedition/js/aui-pull-refresh.js"></script>
<script type="text/javascript" src="<%=URL%>newedition/js/aui-popup-new.js"></script>
<script type="text/javascript" src="<%=URL%>newedition/js/aui-dialog.js"></script>
<script type="text/javascript" src="<%=URL%>js/cookies.js?version=1.1"></script>
<script type="text/javascript" src="<%=URL%>newedition/js/base.js?version=4.0"></script>
<script type="text/javascript" src="<%=URL%>newedition/js/doRefresh.js"></script>
<script type="text/javascript" src="<%=URL%>newedition/js/auipopupstyle.js"></script>
<script type="text/javascript" src="<%=URL%>newedition/js/salesman/salesman.js?version=1.8"></script>
<script type="text/javascript" src="<%=URL%>js/doT.min.js"></script>
<title>任务列表</title>
		<style>
			.aui-popup-content {
				background-color: rgba(68, 68, 68, 0.9);
				border-radius: 0.2rem;
				overflow: hidden;
				min-height: 4.5rem;
				height: 100%;
			}
			
			.aui-popup-arrow {
				position: absolute;
				width: 10px;
				height: 10px;
				-webkit-transform-origin: 50% 50% 0;
				transform-origin: 50% 50% 0;
				background-color: transparent;
				background-image: -webkit-linear-gradient(45deg, #ffffff, #ffffff 50%, transparent 50%);
				background-image: linear-gradient(45deg, rgba(68, 68, 68, 0.9), rgba(68, 68, 68, 0.9) 50%, transparent 50%);
			}
		</style>
	</head>

	<body>
	<input type=hidden name=contextPath value=<%= request.getContextPath()%> id="requestpath"> 
		<header class="aui-bar aui-bar-nav">
			<!-- <a class="aui-pull-left aui-btn">
				<span class="aui-iconfont aui-icon-left"></span>
			</a> -->
			<div class="aui-title">任务列表</div>
			<a class="aui-pull-right aui-btn" onclick="showPopup('top-right')">
				<span class="aui-iconfont aui-icon-more"></span>
			</a>
		</header>
		<div class="aui-refresh-content">
		<div class="list-box aui-content-padded">
				<ul id="dotmainhtml">
					<script type="template" id="dotTmpl">
			{{if(it.length!=0){ }}
				 {{ for(var i=0;i<it.length;i++){	}}	
				 {{if(it[i].orgstatus=="2"){}}
						<li class="list-box-content aui-margin-b-15" >
						<div class="list-header aui-padded-10">
							<span></span>
							<span>待确认</span>
						</div>
						<div class="list-body aui-padded-15" onclick="$(location).attr('href', 'oiler_taskStatus.jsp?orderid={{=it[i].orderid}}');">
							<div class="list-body-left">
								<div>预约收油</div>
								<div>{{=it[i].num}}<span class="list-body-left-icon">桶</span></div>

							</div>
							<div class="list-body-right">
								<div class="list-body-right01">
									<i class="aui-iconfont aui-icon-map" style="color: #c07500;"></i>
									<span>{{=it[i].address}}</span>
								</div>
								<div class="list-body-right02">
									<i class="aui-iconfont aui-icon-date" style="color: #37c5f3;"></i>
									<span>发布时间 </br>{{=it[i].createdDt}}</span>
								</div>
							</div>
						</div>
						<div class="list-footer aui-padded-5" onclick="updateorders('{{=it[i].orderid}}')">
							确认任务
						</div>
					</li>
			{{}}}
			{{ if(it[i].orgstatus=="3"){}}
				<li class="list-box-content aui-margin-b-15" onclick="$(location).attr('href', 'oiler_taskStatus.jsp?orderid={{=it[i].orderid}}');">
						<div class="list-header aui-padded-10">
							<span></span>
							<span style="background-color: #00b79f;">待确认</span>
						</div>
						<div class="list-body aui-padded-15">
							<div class="list-body-left">
								<div>预约收油</div>
								<div>{{=it[i].num}}<span class="list-body-left-icon">桶</span></div>

							</div>
							<div class="list-body-right">
								<div class="list-body-right01">
									<i class="aui-iconfont aui-icon-map" style="color: #c07500;"></i>
									<span>{{=it[i].address}}</span>
								</div>
								<div class="list-body-right02">
									<i class="aui-iconfont aui-icon-date" style="color: #37c5f3;"></i>
									<span>发布时间 </br>{{=it[i].createdDt}}</span>
								</div>
							</div>
						</div>
						<div class="list-footer aui-padded-5" style="background-color: #00b79f;" onclick="$(location).attr('href', 'oiler_taskStatus.jsp?orderid={{=it[i].orderid}}');">
							查看任务
						</div>
					</li>
			{{}}}
			{{ if(it[i].orgstatus=="4"){}}
			<li class="list-box-content aui-margin-b-15" onclick="$(location).attr('href', 'oiler_taskStatus.jsp?orderid={{=it[i].orderid}}');">
						<div class="list-header aui-padded-10">
							<span></span>
							<span style="background-color: #c7c7c7;">已结束</span>
						</div>
						<div class="list-body aui-padded-15">
							<div class="list-body-left">
								<div>预约收油</div>
								<div style="color: #c7c7c7;">{{=it[i].num}}<span class="list-body-left-icon">桶</span></div>

							</div>
							<div class="list-body-right">
								<div class="list-body-right01">
									<i class="aui-iconfont aui-icon-map" style="color: #c07500;"></i>
									<span>{{=it[i].address}}</span>
								</div>
								<div class="list-body-right02">
									<i class="aui-iconfont aui-icon-date" style="color: #37c5f3;"></i>
									<span>发布时间 </br> {{=it[i].createdDt}}</span>
								</div>
							</div>
						</div>
						<div class="list-footer aui-padded-5" style="background-color: #c7c7c7;" onclick="$(location).attr('href', 'oiler_taskStatus.jsp?orderid={{=it[i].orderid}}');">
							查看任务
						</div>
					</li>
			{{}}}
		
				 {{}}}
			{{ }}}

		</script>
				</ul>
		</div>
	
			<!-- <div class="aui-tips aui-margin-b-15" id="tips-1">
				<i class="aui-iconfont aui-icon-info"></i>
				<div class="aui-tips-title">消息提示条消息提示条消息提示</div>
				<i class="aui-iconfont aui-icon-close"></i>
			</div> -->
			
		</div>
	</body>
	<script type="text/javascript">
	$(function() {
		  GetSingleOpenId(getCookie("openid"))   
		findlist(getCookie("salesmaniphone"), "", 9)
	})
		var popup = new auiPopup();
		dorefresh();
	</script>

</html>